package com.hertz.appr.util;

import java.util.ArrayList;
import java.util.List;
import java.util.regex.Pattern;

public class CmdHelper {

	/*
	 * cmd_split = ";"
	 */
	public static final String cmd_split = ",";
	public static final String cmd_eval = "=";
	
	public static final String cmd_line_regex = "<(.*?)>";
	public static final String option_id = "^-i=\\w{5}$";
	public static final String idRegex = "\\w{5}";
	public static final String reg_guess_action_regex = "guess\\([1-9]+\\d*\\)";
	public static final String answer_regex = "answer=.*";
	public static final String endtime_regex = "^\\d{8}-\\d{2}:\\d{2}:\\d{2}$";
	public static final String endtime_ymd_regex = "^\\d{8}$";
	public static final String at_regex = "@[a-zA-Z_0-9-]+\\s";
	
	/**
	 * cmd_line_regex = "<.+>"
	 */
	public static final Pattern pCmdLine = Pattern.compile(cmd_line_regex,Pattern.CASE_INSENSITIVE);
	/**
	 * reg_guess_action_regex = "guess\\(\\d\\)"
	 */
	public static final Pattern pGuessCmdRegex = Pattern.compile(reg_guess_action_regex,Pattern.CASE_INSENSITIVE);
	/**
	 * answer_regex = "answe=:.+"
	 */
	public static final Pattern pAnswerCmdRegex = Pattern.compile(answer_regex,Pattern.CASE_INSENSITIVE);
	
	public static final Pattern optionIdPattern = Pattern.compile(option_id);
	
	public static final Pattern atPattern = Pattern.compile(at_regex);
}
